﻿using ConsoleAutoHomeBBS.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleAutoHomeBBS.AutoHome.Models
{
    /*----------------------------------------------------------------
    * 创 建 人 ：朱雪松
    * 创建时间 ：2020/10/14 20:33:48
    * 修 改 人 ：
    * 修改时间 ：
    * 版 本 号 ：@version 1.0
    * 描    述 ：
    *******************************************************************/

    public class TopicModel : BaseModel
    {
        /// <summary>
        /// 主题(帖子)编号
        /// </summary>
        public long topicid { get; set; }
        /// <summary>
        /// 标题（帖子标题）
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 提交成员编号
        /// </summary>
        public long post_memberid { get; set; }
        /// <summary>
        /// 提交成员名称
        /// </summary>
        public string post_membername { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime postdate { get; set; }
        /// <summary>
        /// 是否存在照片
        /// </summary>
        public int ispic { get; set; }
        /// <summary>
        /// 是否投票
        /// </summary>
        public int ispoll { get; set; }
        /// <summary>
        /// 是否精华
        /// </summary>
        public int isrefine { get; set; }

        /// <summary>
        /// 回复数
        /// </summary>
        public int replycount { get; set; }

        /// <summary>
        /// 浏览量
        /// </summary>
        public int viewcount { get; set; }

        /// <summary>
        /// 视频编号
        /// </summary>
        public string videoid { get; set; }

        /// <summary>
        /// 是否存在视频
        /// </summary>
        public int isvideo { get; set; }

        /// <summary>
        /// 视频信息
        /// </summary>
        public VideoInfoModel videoinfo { get; set; }

        /// <summary>
        /// 质量信息
        /// </summary>
        public QAInfoModel qainfo { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        public List<TagsModel> tags { get; set; }
        /// <summary>
        /// 主题(帖子)类型
        /// </summary>
        public string topictype { get; set; }
        /// <summary>
        /// 照片URL集合
        /// </summary>
        public string imgs { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string jximgs { get; set; }
        /// <summary>
        /// 主题(帖子)url
        /// </summary>
        public string url { get; set; }
        /// <summary>
        /// 照片数量
        /// </summary>
        public int piccount { get; set; }
        /// <summary>
        /// 是否精选
        /// </summary>
        public int isjingxuan { get; set; }
        /// <summary>
        /// 问题是佛解决
        /// </summary>
        public int issolve { get; set; }
        /// <summary>
        /// 直播编号
        /// </summary>
        public object liveid { get; set; }
        /// <summary>
        /// 直播回放
        /// </summary>
        public object livecover { get; set; }

    }
    /// <summary>
    /// 质量信息
    /// </summary>
    public class QAInfoModel
    {
        public long topicid { get; set; }
        public bool issolve { get; set; }
        public bool ishigh { get; set; }
        public int confirmreplyid { get; set; }
        public string summary { get; set; }
    }
    /// <summary>
    /// 标签
    /// </summary>
    public class TagsModel
    {
        /// <summary>
        /// 标签编号
        /// </summary>
        public int tagid { get; set; }
        /// <summary>
        /// 标签名称
        /// </summary>
        public string tagname { get; set; }
    }

    public class VideoInfoModel
    {
        /// <summary>
        /// 视频编号
        /// </summary>
        public string videoid { get; set; }
        /// <summary>
        /// 视频照片url
        /// </summary>
        public string videoimg { get; set; }
        /// <summary>
        /// 视频时长
        /// </summary>
        public long duration { get; set; }
        /// <summary>
        /// 视频简介
        /// </summary>
        public string summary { get; set; }
    }
}
